package com.siyuanren.gcocp.mapper;

import com.siyuanren.gcocp.dto.wx.WxUserVoucherDTO;
import com.siyuanren.gcocp.mapper.base.WxUserVoucherMapper;
import com.siyuanren.gcocp.vo.QueryActiveVO;

import java.util.List;


public interface MyWxUserVoucherMapper extends WxUserVoucherMapper {
    /**
     * 返回活动 参与者
     * @param activeVO
     * @return
     * SELECT u.`user_name`, u.`head_imgurl`, uv.*
    FROM wx_user_voucher uv, wx_user u
    WHERE active_id=23 AND uv.`sponsor_user_id` = 45 AND uv.`user_id`=u.`id` AND voucher_state=2
     */
    List<WxUserVoucherDTO> getActivePlayer(QueryActiveVO activeVO);

}
